package com.work.chat.custom.server.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.work.chat.custom.server.config.model.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class Product extends BaseEntity implements Serializable  {

   @TableId(value = "id",type = IdType.AUTO)
   @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 商品条形码
     */
   private String productCommodityCode;

    /**
     * 商品名称
     */
   private String productTitle;

    /**
     * 商品进货价
     */
   private BigDecimal purchasePrice;

    /**
     * 商品零售价
     */
   private BigDecimal retailPrice;


    /**
     * 库存
     */
    @JsonSerialize(using = ToStringSerializer.class)
   private Long productInventory;

    private Integer typeId;

}
